#拉取
docker run --name seata-server -p 8091:8091 -p 7091:7091 seataio/seata-server:1.4.2

#copy配置
docker cp seata-server:/seata-server/resources /home/ubuntu/dhy/seata/142Config

#删除临时容器
docker rm -f seata-server

#修改配置文件--参考seata.yml

#nacos创建配置信息--seataServer.properties

#创建seata数据库--seata.sql

#重新创建容器
#手动指定seata往nacos注册的ip地址,防止使用docker内网ip
docker run --name seata-server \
        -d \
        -p 8091:8091 \
        -p 7091:7091 \
        -e SEATA_IP=xxx \
        -v /home/ubuntu/dhy/seata/config:/seata-server/resources  \
        seataio/seata-server:1.5.0


#1.4.2安装
sudo mkdir -p /app/seata/conf
#安装教程
https://www.pudn.com/news/629724a9e74b9677e8fa4900.html
docker run --name seata-server \
        -d \
        -p 8091:8091 \
        -p 7091:7091 \
        -e SEATA_IP=xxx \
        -v /app/seata/conf/registry.conf:/seata-server/resources/registry.conf  \
        seataio/seata-server:1.4.2